package com.example.springcloud.common;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @author X.I.O
 * @title: Contants
 * @projectName springboot
 * @description: TODO
 * @date 2021/10/27 19:12
 *
 * 常量
 */
@Component
public class Contants {

    public static String SYSTEM_PORT;

    @Value("${server.port}")
    private String port;

    @PostConstruct
    public void setServerPort(){
        this.SYSTEM_PORT= port;
    }

    public final static Integer CODE_SUCCESS=0;

    public final static Integer CODE_ERROR=1;

    public final static String CODE="code";

    public final static String MSG="msg";

    public final static String DATA="rows";

    public final static String TOTAL="total";

    public final static String SUCCESS="success";

    public final static String ERROR="error";

    public final static String DOWN_LOAD_URL="/file/download/";

    public final static String HTTP="http://";

    public final static String LOCAL_IP="127.0.0.1";

    public final static String SEPARATOR=":";



}
